﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Transactions;

using MINERP.DAL;
using MINERP.DAL.InfoConfig;
namespace MINERP.BLL.InfoConfig
{
    public class AreaBLL
    {
        #region //Private Fields


        #endregion


        #region //Public Properties

        #endregion



        #region //Public Methods
        /// <summary>
        /// Get Area List
        /// </summary>
        /// <returns></returns>
        public List<GridSubArea> GetAreaList()
        {
            return AreaDAL.GetAreaList();
        }
        /// <summary>
        /// Get Area object
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public GridSubArea GetAreaObj(int id)
        {
            return AreaDAL.GetAreaObj(id);
        }

        public GridSubArea GetAreaObj(string name)
        {
            return AreaDAL.GetAreaObj(name);
        }
        // Add GridSubArea
        public void Add(GridSubArea obj)
        {
            AreaDAL.Add(obj);
        }
        // Update GridSubArea
        public void Update()
        {
            AreaDAL.Update();
        }
        // Delete GridSubArea
        public void Delete(GridSubArea obj)
        {
            AreaDAL.Delete(obj);
        }
        public void DeleteGrid(GridSubArea area)
        {
            AreaDAL.DeleteGrid(area);
        }
        #endregion
    }
}
